<template>
  <div>
    <div class="component-mainHeader">
      <div class="top">
        <div class="topleft">
          <p>
            <span class="iconfont" style="color:#1abc9a;margin-right:3px;">&#xe607;</span>工作量确认表
          </p>
        </div>
        <div class="topright">
          <el-button type="info" @click="$router.go(-1)">
            <span style="font-weight:700;margin-right:5px;" class="iconfont">&#xe606;</span>返回
          </el-button>
          <el-button type="info" @click="$router.go(0)">
            <span style="font-weight:700;margin-right:5px;" class="iconfont">&#xe662;</span>刷新
          </el-button>
        </div>
      </div>
    </div>
    <div class="component-searchHeader">
      <div class="search-header">
        <div class="left-title">
          <p class="left-text">工作量确认表</p>
          <div class="right"></div>
        </div>
      </div>
    </div>
    <div class="table">
      <el-table
        ref="multipleTable"
        :data="info"
        tooltip-effect="dark"
        style="width:100%"
        border
      >
        <el-table-column label="区域" align="center" width="180" prop="col_2"></el-table-column>
        <el-table-column label="镇区" width="180" align="center" prop="col_3"></el-table-column>
        <el-table-column label="站点名称" width="180" align="center" prop="col_4"></el-table-column>
        <el-table-column label="BMS工单号" align="center" width="180" prop="col_5"></el-table-column>
        <el-table-column label="完成日期" align="center" width="180" prop="col_6">
        </el-table-column>
        <el-table-column label="分光器数" align="center" width="180" prop="col_7"></el-table-column>
        <el-table-column label="箱体个数" align="center" width="180" prop="col_8"></el-table-column>
        <el-table-column label="光缆长度" align="center" width="180" prop="col_9"></el-table-column>
        <el-table-column label="费用" align="center" width="180" prop="col_10"></el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        info:[]
      };
    },
    created(){

    },
    mounted(){
      this.dataInit();
    },
    methods: {
      dataInit(){
        let that = this,
          suCb = function (res) {
            console.log(res)
            that.info = [res.data.data]||[];
          },
          erCb = function (res) {
            console.log(res)
          },
          palyParam = {
            url: "/api/web/proProject/getBMKWorkConfirm",
            methods: 'post',
            data: {
              proId : that.$route.query.proId
              // proId:"e289c1d9-679f-418c-beba-a5b30bdc"
            },
            success: suCb,
            error: erCb,
          }
        that.$https(palyParam)
      },
    },
    watch: {}

  };
</script>
<style scoped>
  .component-mainHeader .top .topright {
    font-size: 24px;
  }

  .component-searchHeader .search-header {
    width: 1100px;
    box-sizing: border-box;
    border: 1px solid rgba(228, 228, 228, 1);
    background-color: rgba(255, 255, 255, 1);
    margin: 20px auto 0;
  }

  .component-searchHeader .search-header .left-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: rgba(243, 243, 243, 1);
    height: 45px;
    box-sizing: border-box;
  }

  .component-searchHeader .search-header .left-title .left-text {
    width: 20%;
    color: #666;
    font-family: "微软雅黑";
    font-weight: 400;
    font-size: 12px;
    line-height: 45px;
    text-align: left;
    margin: 0 0 0 30px;
  }
  .table{
    width: 1100px;
    margin: 0px auto;
    border-top:none;
  }
</style>
